﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VoteEdit.aspx.cs" Inherits="Business_Cisoft3G_InboxManage_VoteEdit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>短信新增</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/font.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/style_ts.css" rel="stylesheet" type="text/css" />
    <asp:Literal ID="ltScript" runat="server"></asp:Literal>

    <script type="text/javascript" src="../../../js/jquery-1.4.2.min.js"></script>

    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        .tab
        {
            background-color: #FAFAFA;
            margin: 2px 5px;
            padding: 2px 4px;
        }
        .tab p span
        {
            background-color: #EFEFEF;
            border: 1px solid #CCCCCC;
            cursor: pointer;
            margin-right: 6px;
            padding: 2px 5px;
        }
        .tab p span.current
        {
            background-color: #FAFAFA;
            border-bottom-color: #fafafa;
        }
        .tab p
        {
            border-bottom: 1px solid #CCCCCC;
            font-weight: bold;
            padding: 0 10px 2px;
        }
        .tab li
        {
            border-bottom: 1px dotted #CCCCCC;
            padding-bottom: 2px;
            margin: 1px 0;
        }
        .tab .mhot, .tab.allhot
        {
            display: none;
        }
        .tab ul
        {
            margin-left: 1px;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function() {
            //Tab
            $(".tab span:first").addClass("current"); //为第一个SPAN添加当前效果样式
            $(".tab ul:not(:first)").hide(); //隐藏其它的UL
            $(".tab span").click(function() {
                $(".tab span").removeClass("current"); //去掉所有SPAN的样式
                $(this).addClass("current");
                $(".tab ul").hide();
                $("." + $(this).attr("id")).fadeIn('normal');
            });
            //TreeView点击
            var o = $("a[href^='GetContactsHandler']");
            o.each(function() {
                var oo = $(this);
                oo.click(function() {
                    $('#s1').empty();
                    $.ajax({
                        type: "GET",
                        url: oo.attr('href'),
                        success: function(msg) {
                            $('#s1').append(msg);
                        }
                    });
                    return false;
                });
            });

            //点击查询按钮
            $('#btnSearch').click(function() {
                $('#s1').empty();
                $.ajax({
                    type: "GET",
                    url: 'GetContactsHandler.ashx?SearchType=' + $('#ddlSearchType option:selected').val() + '&Condition=' + $.trim($('#txtCondition').val()),
                    success: function(msg) {
                        if ($.trim(msg) != '') {
                            $('#s1').append(msg);
                        }
                    }
                });
            });
            //点击确认按钮
            $('#btnConfirm').click(function() {
                var mobiles = '';
                if ($('#s2 option').length > 0) {
                    $('#s2 option').each(function() {
                        var op = $(this);
                        var txt = $('#txtRecive');
                        if (txt.text().indexOf(op.val()) == -1 && op.val() != '') {
                            if ($.trim(txt.text()).length == 0) {
                                txt.append(op.val() + ',');
                            }
                            else {
                                if ($.trim(txt.text()).indexOf(',') == $.trim(txt.text()).length - 1) {
                                    txt.append(op.val() + ',');
                                }
                                else {
                                    txt.append(',' + op.val() + ',');
                                }
                            }
                        }
                        else { }
                    });
                    //$('#txtRecive').text($('#txtRecive').text().substr(0, $('#txtRecive').text().length - 1));
                    $('#txtRecive').text($.trim($('#txtRecive').val()).replace(/,,/g, ","));
                    $('#btnCloseAll').click();
                }
            });

            //左边双击
            $("#s1").dblclick(function() {
                var alloptions = $("#s1 option");
                var so = $("#s1 option:selected");

                //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                if ($("#s2").val() == null) {
                    $("#s2").append(so);
                }
                if ($("#s2").text() != null) {
                    if ($("#s2").text().indexOf(so.val()) == -1) {
                        $("#s2").append(so);
                    }
                    if ($("#s2").text().indexOf(so.val()) > -1) {
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //右边双击
            $("#s2").dblclick(function() {
                var alloptions = $("#s2 option");
                var so = $("#s2 option:selected");
                //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                if ($("#s1").text() == null) {
                    $("#s1").append(so);
                }
                if ($("#s1").text() != null) {
                    if ($("#s1").text().indexOf(so.val()) == -1) {
                        $("#s1").append(so);
                    }
                    else {
                        so.remove();
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //选中右移
            $("#add").click(function() {
                var alloptions = $("#s1 option");
                if ($("#s1 option").val() != null) {
                    var so = $("#s1 option:selected");
                    if (so.length > 0) {
                        //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                        if ($('#s2').text() == null) {
                            $("#s2").append(so);
                        }
                        if ($('#s2').text() != null) {
                            if ($('#s2').text().indexOf(so.val()) == -1) {
                                $("#s2").append(so);
                            }
                            else {
                                so.remove();
                            }
                        }
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //选中左移
            $("#remove").click(function() {
                var alloptions = $("#s2 option");
                if (alloptions.length > 0) {
                    var so = $("#s2 option:selected");
                    if (so.length > 0) {
                        if ($('#s1 option').length == 0) {
                            $("#s1").append(so);
                        }
                        else {
                            if ($('#s1').text().indexOf(so.val()) == -1) {
                                $("#s1").append(so);
                            }
                            else {
                                so.remove();
                            }
                        }
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //全部右移
            $("#addall").click(function() {
                if ($("#s1").text() != null) {
                    //$("#s1").eq(0).selectedIndex = 0;
                    if ($("#s2 option").length == 0) {
                        //alert($("#s2").text());
                        $("#s2").append($("#s1 option"));
                    }
                    if ($("#s2").text() != null) {
                        var flag = false;
                        $("#s1 option").each(function() {
                            if ($("#s2").text().indexOf($(this).val()) == -1) {
                                $("#s2").append($(this));
                            }
                            else {
                                $(this).remove();
                            }
                        });
                    }
                    $("#s1").val(null);
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
                $("#s1").empty();
                $("#s1").html('');
            });
            //全部左移
            $("#removeall").click(function() {
                if ($("#s2").text() != null) {
                    if ($("#s1").text() == null) {
                        $("#s1").append($("#s2 option"));
                    }
                    if ($("#s1").text() != null) {
                        var flag = false;
                        $("#s2 option").each(function() {
                            var s2o = $(this);
                            if ($("#s1").text().indexOf(s2o.val()) == -1) {
                                $("#s1").append(s2o);
                            }
                            else {
                                s2o.remove();
                            }
                        });
                    }
                    $("#s2").empty();
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });

            //选择立即发送和定时发送
            //立即发送
            $('#rbtnNow').click(function() {
                $('#txtTime').css('display', 'none');
                $('#imgStartDate').css('display', 'none'); ;
                $('#selectHour').css('display', 'none'); ;
                $('#spanHour').css('display', 'none'); ;
                $('#selectMinite').css('display', 'none'); ;
                $('#spanMinite').css('display', 'none'); ;
            });
            $('#rbtnNow').click();
            //定时发送
            $('#rbtnTime').click(function() {
                $('#txtTime').css('display', '');
                $('#imgStartDate').css('display', ''); ;
                $('#selectHour').css('display', ''); ;
                $('#spanHour').css('display', ''); ;
                $('#selectMinite').css('display', ''); ;
                $('#spanMinite').css('display', ''); ;
                //清空
                $('#txtTime').val('');
                $('#selectHour').val('00');
                $('#selectMinite').val('00');
            });
        });

    </script>

    <script type="text/javascript">

        String.prototype.len = function() {
            return this.replace(/[^\x00-\xff]/g, "**").length;
        }

        function check(obj) {
            var re = /[^\x00-\xff]/g;
            return re.test(obj);
        }
        //gwh 20100221 追加内容判断
        function select_onblurAll() {
            var flag = false;
            var text1 = document.getElementById('txtRecive');
            var spanforerror = document.getElementById('spanReciveNotic');
            var text1content = document.getElementById('txtSMsContent');
            var spanforerrorcontent = document.getElementById('spanSmsContentNotic');

            if (tb_Mobile_IsNull(text1content)) {
                spanforerrorcontent.innerHTML = "<span style='color:red; font-weight:bold'>请填写短信内容</span>";
                return flag;
            } else spanforerrorcontent.innerHTML = "";
            if (text1content.value.len() > 1000) {
                spanforerrorcontent.innerHTML = "<span style='color:red; font-weight:bold'>内容过长，请注意</span>";
                return flag;
            } else spanforerrorcontent.innerHTML = "";
            if (tb_Mobile_IsNull(text1)) {
                spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>请选择或填写至少一个手机号码</span>";
                return flag;
            } else spanforerror.innerHTML = "";
            if (text1.value.length > 0) {
                var arraryText1 = text1.value.trim().split(',');
                for (var i = 0; i < arraryText1.length; i++) {
                    if (arraryText1[i].length > 0) {
                        if (arraryText1[i].length != 11 && !checkMobile(arraryText1[i])) {
                            spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>号码\"" + arraryText1[i].substring(0, 11) + "\"不是有效的手机号码！</span>";
                            flag = false;
                            break;
                        }
                        //                        if (!checkMobile(arraryText1[i])) {
                        //                            flag = false;
                        //                            spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>号码\"" + arraryText1[i].substring(0,11) + "\"不是有效的手机号码！</span>";
                        //                            break;
                        //                        }
                        spanforerror.innerHTML = "";
                        flag = true;
                        continue;
                    }
                }
            }

            if (checkDate())
                return flag;
            else
                return false;
        }

        function checkDate() {
            var f = true;
            var rbtnTime = document.getElementById('rbtnTime');
            var txtTime = document.getElementById('txtTime');
            var spanTimeNotic = document.getElementById('spanTimeNotic');
            if (rbtnTime.checked) {
                if (txtTime.value == '') {
                    spanTimeNotic.innerHTML = '请输入定时发送时间！';
                    return f = false;
                }
                else {
                    spanTimeNotic.innerHTML = '';
                    f = true;
                }
            }
            return f;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" runat="server" id="hih_right" />
    <asp:ScriptManager ID="Scriptmanager1" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </asp:ScriptManager>
    <%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
    <div class="position_list">
        <div class="position_left_list">
        </div>
        <div class="position_con_list">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30">
                        <img src="../../../Images/3G/icon3_1.gif" width="14" height="14" alt="" />
                    </td>
                    <td class="cyan12">
                        短信发送：为您提供短信发送、批量和定时发送功能。
                    </td>
                </tr>
            </table>
        </div>
        <div class="position_right_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域开始<![endif]-->
    <div class="search_list">
        <div class="search_top_list">
            <div class="search_topleft_list">
            </div>
            <!--  查询     -->
            <div class="search_topbg_list">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30" align="left" valign="middle" style="padding-top: 4px;">
                            <img src="../../../Images/3G/icon_logo.gif" width="22" height="22" alt="" />
                        </td>
                        <td width="100" class="cyan13_bold" style="padding-top: 5px;">
                            系统温馨提示栏
                        </td>
                        <td style="padding-top: 5px;">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="search_topright_list">
            </div>
        </div>
        <!--   列表     -->
        <div class="index_search_con_list">
            <%--<table width="818px"  border="0" cellspacing="1" cellpadding="0" bgcolor="73798f" id="tableList">--%>
            <%--<table width="820px" border="0" cellspacing="0" cellpadding="0" style="padding: 10px 20px 0px 20px;"
                class="white13_bold">--%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white13_bold"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr class="form_lineheight">
                                <td align="left" valign="middle" width="130" style="min-width: 100px;">
                                    <%-- <span style="font-weight: bold; color: White;">接收人：</span>--%>
                                    <asp:Button ID="btnCallContacts" runat="server" ToolTip="点击选择短信接收人" CausesValidation="false"
                                        OnClick="btnCallContacts_Click" />
                                </td>
                                <td align="left" valign="middle" width="57%" style="min-width: 300px; max-width: 57%;">
                                    <%-- <asp:TextBox ID="txtRecive" runat="server" TextMode="MultiLine" Style="width: 450px;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 120px; border: 0px;
                                        overflow: hidden;" onfocus="this.style.border = '2px solid #52ff00'" onblur="this.style.border = '1px solid #ffffff'"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtRecive" runat="server" TextMode="MultiLine" Style="width: 100%;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 120px; border: 0px;
                                        overflow: hidden;"></asp:TextBox>
                                </td>
                                <td align="left" valign="middle">
                                    <%--<asp:Button ID="btnCallContacts" runat="server" ToolTip="通讯录" CausesValidation="false"
                                                OnClick="btnCallContacts_Click" />--%>
                                    &nbsp;&nbsp;&nbsp;
                                    <div style="padding-left: 15px;">
                                        <br />
                                        <span class="cyan13_bold" id="spanRecive">* 请输入接收人号码，多个号码请用英文状态下的逗号分隔。</span>
                                        <br />
                                        <br />
                                        &nbsp;&nbsp;<span style="color: Red; font-weight: bold;" id="spanReciveNotic"></span>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
            <%-- </table>--%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white13_bold"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr class="form_lineheight">
                                <td align="left" valign="middle" width="130" style="min-width: 130px;">
                                    
                                    <span id="spanSMSContent">短信内容：</span>
                                    <br />
                                </td>
                                <td align="left" valign="middle" width="57%" style="min-width: 300px; max-width: 57%;">
                                    <asp:TextBox ID="txtSMsContent" runat="server" TextMode="MultiLine" Style="width: 100%;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 120px; border: 0px;
                                        overflow: hidden;"></asp:TextBox>
                                </td>
                                <td align="left" valign="middle">
                                    &nbsp;&nbsp;&nbsp;
                                    <div style="padding-left: 15px;">
                                        
                                        <br />
                                        <br />
                                        &nbsp;&nbsp;<span class="cyan13_bold" id="spanSmsContentNotic"></span>
                                    </div>
                                </td>
                            </tr>
                            <tr class="form_lineheight">
                                <td align="left" valign="middle">
                                    发送方式：
                                </td>
                                <td align="left" valign="middle">
                                    <asp:RadioButton ID="rbtnNow" runat="server" Text="立即发送" GroupName="rGroup" Checked="true" />
                                    <asp:RadioButton ID="rbtnTime" runat="server" Text="定时发送" GroupName="rGroup" />
                                    <asp:TextBox ID="txtTime" runat="server" Style="border: 1px solid #ffffff; width: 80px;"
                                        onfocus="this.style.border = '2px solid #f1fe00'" onblur="this.style.border = '1px solid #ffffff';if(document.getElementById('rbtnNow').checked){document.getElementById('spanTimeNotic').innerHTML = '';}"></asp:TextBox>
                                    <img src="../../../Images/Calendar_scheduleHS.png" alt="点击选择定时发送日期" id="imgStartDate"
                                        runat="server" onclick="WdatePicker({el:'txtTime',minDate:'%y-%M-{%d}'})" />
                                    <select name="selectHour" id="selectHour" runat="server" style="border: 1px solid #ffffff">
                                    </select>
                                    <span id="spanHour">时</span>
                                    <select name="selectMinite" id="selectMinite" runat="server" style="border: 1px solid #ffffff">
                                    </select>
                                    <span id="spanMinite">分</span>
                                </td>
                                <td align="left" valign="middle">
                                    <asp:TextBox ID="txtTimeNow" runat="server" Style="display: none"></asp:TextBox>
                                    <asp:CompareValidator ID="cv1" runat="server" ErrorMessage="定时发送时间必须大于当前时间！" ControlToCompare="txtTimeNow"
                                        ControlToValidate="txtTime" Type="Date" Display="Dynamic"></asp:CompareValidator>
                                    <span style="color: Red; font-weight: bold" id="spanTimeNotic"></span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <%--<input id="fs" type="submit" name="Submit" value="" />--%>
                                    <br />
                                    <asp:Button ID="btnSend" runat="server" Text="" OnClick="btnSend_Click" ToolTip="发送"
                                        OnClientClick="if(select_onblurAll()){document.getElementById('LinkButton2').click();}else{return false;}" />
                                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="btnSend_Click"></asp:LinkButton>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="search_bottom_list">
        <div class="search_bottomleft_list">
        </div>
        <div class="search_bottombg_list">
        </div>
        <div class="search_bottomright_list">
        </div>
    </div>
    <!--提示框-->
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton2"
        PopupControlID="Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="false" PopupDragHandleControlID="Panel2" CancelControlID="btnCloseAll2">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" Style="display: none; width: 26%; vertical-align: middle;">
        <div class="attention_delete">
            <asp:Panel ID="Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid_delete">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    提示信息
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll2" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="Panel3" runat="server">
                    <table border="1" runat="server" id="table2" cellpadding="5" cellspacing="0" bordercolor="#0e62a7"
                        style="width: 100%; text-align: center; border-collapse: collapse;">
                        <tr>
                            <td style="text-align: Center">
                                <asp:Label ID="lblTS" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="navi_link">
                                <asp:Button ID="btnBack_ts" runat="server" ToolTip="返回" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton4" runat="server" Visible="true"></asp:LinkButton>
    <%--    </ContentTemplate>
    </asp:UpdatePanel>--%>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender3" runat="server" TargetControlID="LinkButton1"
        PopupControlID="appease_Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="false" PopupDragHandleControlID="appease_Panel2" CancelControlID="btnCloseAll">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="appease_Panel1" runat="server" Style="display: none; width: 650px;
        vertical-align: middle;">
        <div class="attention">
            <asp:Panel ID="appease_Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    通讯录
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="appease_Panel3" runat="server">
                    <table border="1" cellpadding="0" cellspacing="0" bordercolor="#0e62a7" style="width: 100%;">
                        <tr>
                            <td valign="top">
                                <%-- <table>
                                    <tr>
                                        <td valign="top">--%>
                                <div class="tab" style="text-align: left">
                                    <p>
                                        <span id="tab1">组织结构</span><span id="tab2">自定义组</span>
                                    </p>
                                    <br />
                                    <ul class="tab1">
                                        <asp:TreeView ID="tvContactsGroup" runat="server" ImageSet="Arrows" ShowLines="True">
                                            <ParentNodeStyle Font-Bold="False" />
                                            <HoverNodeStyle Font-Underline="False" ForeColor="#5555DD" />
                                            <SelectedNodeStyle Font-Underline="False" HorizontalPadding="0px" VerticalPadding="0px"
                                                ForeColor="#5555DD" Font-Bold="true" />
                                            <RootNodeStyle ForeColor="Blue" />
                                            <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px"
                                                NodeSpacing="0px" VerticalPadding="0px" />
                                        </asp:TreeView>
                                    </ul>
                                    <ul class="tab2">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <asp:Label ID="lblDefineGroup" runat="server" Text=""></asp:Label>
                                        </table>
                                    </ul>
                                </div>
                                <%--</td>
                                    </tr>
                                </table>--%>
                            </td>
                            <td valign="top">
                                <!--查询框-->
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <span>查询选项：</span>
                                            <asp:DropDownList ID="ddlSearchType" runat="server">
                                                <asp:ListItem Selected="True" Value="CT_Name">姓名</asp:ListItem>
                                                <asp:ListItem Value="CT_Mobile">手机号码</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtCondition" runat="server" Style="border: 1px solid #000000; width: 90px"
                                                MaxLength="11"></asp:TextBox>
                                            <input type="button" id="btnSearch" runat="server" title="查询" style="width: 61px;
                                                height: 21px; border: 0px; background: url(../../Images/3G/button_search.gif) no-repeat;" />
                                            <%--<asp:Button ID="btnConfirm" runat="server" ToolTip="确认选择" OnClick="btnConfirm_Click"/>--%>
                                            <input type="button" id="btnConfirm" />
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <div id="divData">
                                                <table>
                                                    <tr>
                                                        <td style="vertical-align: top">
                                                            <span>可选联系人</span>
                                                            <br />
                                                            <asp:ListBox ID="s1" runat="server" Height="250px" Width="170px" SelectionMode="Multiple">
                                                            </asp:ListBox>
                                                        </td>
                                                        <td style="vertical-align: middle">
                                                            <input type="button" id="addall" runat="server" title="全部右移" />
                                                            <br />
                                                            <input type="Button" id="add" runat="server" title="右移" />
                                                            <br />
                                                            <input type="Button" id="remove" runat="server" title="左移" />
                                                            <br />
                                                            <input type="Button" id="removeall" runat="server" title="全部左移" />
                                                        </td>
                                                        <td>
                                                            <span>已选择联系人</span>
                                                            <br />
                                                            <asp:ListBox ID="s2" runat="server" Height="250px" Width="170px" SelectionMode="Multiple">
                                                            </asp:ListBox>
                                                            <select id="s3" style="display: none" />
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton1" runat="server" Visible="true" OnClick="LinkButton1_Click"></asp:LinkButton>
    </form>
</body>
</html>